<?php

declare( strict_types = 1 );
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */
return [
	'scan' => [
		/*        'paths' => [
					BASE_PATH . '/app',
				],*/
		'paths' => value(function () {
			$paths = [];
			$dirs = \Symfony\Component\Finder\Finder::create()->in(BASE_PATH . '/app')
				->depth('< 1')
				->exclude( [ // 排除
					'Common',
				] ) // 此处按照实际情况进行修改
				->directories();
			/** @var SplFileInfo $dir */
			foreach ($dirs as $dir) {
				$paths[] = $dir->getRealPath();
			}
			return $paths;
		}),
		'ignore_annotations' => [
			'mixin',
		],
	],
];
